package com.carkeeper.system.pojo;

import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.List;

/**
 * @author 周志雄
 * @version 1.0
 * @date 2020/11/23 15:36
 */
@Table(name = "tb_employee")
public class Employee implements Serializable {


    @Id
    private Long id;
    //员工姓名
    private String name;
    //员工电话
    private String phone;
    //员工邮箱
    private String email;
    //部门id
    private String departmentId;
    //账号状态
    private String accountStatus;
    //用户名
    private String username;
    //密码
    private String password;
    //创建时间
    private String createTime;
    //更新时间
    private String updateTime;

    private List<Department> departments;

    private List<Role> roles;

    private Department department;

    private Role role;

    private List<Long> roleIds;



    public Employee() {

    }



    public Employee(Long id, String name, String phone, String email, String departmentId, String accountStatus, String username, String password, String createTime, String updateTime, List<Department> departments, List<Role> roles, Department department, Role role, List<Long> roleIds) {
        this.id = id;
        this.name = name;
        this.phone = phone;
        this.email = email;
        this.departmentId = departmentId;
        this.accountStatus = accountStatus;
        this.username = username;
        this.password = password;
        this.createTime = createTime;
        this.updateTime = updateTime;
        this.departments = departments;
        this.roles = roles;
        this.department = department;
        this.role = role;
        this.roleIds = roleIds;
    }



    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getDepartmentId() {
        return departmentId;
    }

    public void setDepartmentId(String departmentId) {
        this.departmentId = departmentId;
    }

    public String getAccountStatus() {
        return accountStatus;
    }

    public void setAccountStatus(String accountStatus) {
        this.accountStatus = accountStatus;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public List<Department> getDepartments() {
        return departments;
    }

    public void setDepartments(List<Department> departments) {
        this.departments = departments;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public Department getDepartment() {
        return department;
    }

    public void setDepartment(Department department) {
        this.department = department;
    }

    public Role getRole() {
        return role;
    }

    public void setRole(Role role) {
        this.role = role;
    }

    public List<Long> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<Long> roleIds) {
        this.roleIds = roleIds;
    }

}
